package com.guanglan.serviceImpl;

import com.guanglan.entity.SysRolePermission;
import com.guanglan.mapper.SysRolePermissionMapper;
import com.guanglan.service.SysRolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * 作者: 光蓝Comet
 * Date: 2018-06-20 15:34
 * Description: 一句话说明这个类的作用
 * Since 1.0
 */
@Service
public class SysRolePermissionServiceImpl implements SysRolePermissionService {

    @Autowired
    private SysRolePermissionMapper sysRolePermissionMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return sysRolePermissionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SysRolePermission sysRolePermission) {
        return sysRolePermissionMapper.insert(sysRolePermission);
    }

    @Override
    public int insertSelective(SysRolePermission sysRolePermission) {
        return sysRolePermissionMapper.insertSelective(sysRolePermission);
    }

    @Override
    public SysRolePermission selectByPrimaryKey(Long id) {
        return sysRolePermissionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SysRolePermission sysRolePermission) {
        return sysRolePermissionMapper.updateByPrimaryKeySelective(sysRolePermission);
    }

    @Override
    public int updateByPrimaryKey(SysRolePermission sysRolePermission) {
        return sysRolePermissionMapper.updateByPrimaryKey(sysRolePermission);
    }
}
